package ca.qc.bdeb.info.pp2.tp2.application;

import org.hibernate.Session;

public class VendreProprieteDAO
{
    public void ecrireVendrePropriete(VendrePropriete p)
    {
        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();
        session.save(p);
        session.getTransaction().commit();
    }
}
